3.9.94 \(\int (2+e x)^{5/2} \sqrt {12-3 e^2 x^2} \, dx\) [894]

Optimal. Leaf size=87 \[ -\frac {128 (2-e x)^{3/2}}{\sqrt {3} e}+\frac {96 \sqrt {3} (2-e x)^{5/2}}{5 e}-\frac {24 \sqrt {3} (2-e x)^{7/2}}{7 e}+\frac {2 (2-e x)^{9/2}}{3 \sqrt {3} e} \]

[Out]

-128/3*(-e*x+2)^(3/2)/e*3^(1/2)+2/9*(-e*x+2)^(9/2)/e*3^(1/2)+96/5*(-e*x+2)^(5/2)*3^(1/2)/e-24/7*(-e*x+2)^(7/2)
*3^(1/2)/e

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 87, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {641, 45} \begin {gather*} \frac {2 (2-e x)^{9/2}}{3 \sqrt {3} e}-\frac {24 \sqrt {3} (2-e x)^{7/2}}{7 e}+\frac {96 \sqrt {3} (2-e x)^{5/2}}{5 e}-\frac {128 (2-e x)^{3/2}}{\sqrt {3} e} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(2 + e*x)^(5/2)*Sqrt[12 - 3*e^2*x^2],x]

[Out]

(-128*(2 - e*x)^(3/2))/(Sqrt[3]*e) + (96*Sqrt[3]*(2 - e*x)^(5/2))/(5*e) - (24*Sqrt[3]*(2 - e*x)^(7/2))/(7*e) +
 (2*(2 - e*x)^(9/2))/(3*Sqrt[3]*e)

Rule 45

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 641

Int[((d_) + (e_.)*(x_))^(m_.)*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[(d + e*x)^(m + p)*(a/d + (c/e)*x)^
p, x] /; FreeQ[{a, c, d, e, m, p}, x] && EqQ[c*d^2 + a*e^2, 0] && (IntegerQ[p] || (GtQ[a, 0] && GtQ[d, 0] && I
ntegerQ[m + p]))

Rubi steps

\begin {align*} \int (2+e x)^{5/2} \sqrt {12-3 e^2 x^2} \, dx &=\int \sqrt {6-3 e x} (2+e x)^3 \, dx\\ &=\int \left (64 \sqrt {6-3 e x}-16 (6-3 e x)^{3/2}+\frac {4}{3} (6-3 e x)^{5/2}-\frac {1}{27} (6-3 e x)^{7/2}\right ) \, dx\\ &=-\frac {128 (2-e x)^{3/2}}{\sqrt {3} e}+\frac {96 \sqrt {3} (2-e x)^{5/2}}{5 e}-\frac {24 \sqrt {3} (2-e x)^{7/2}}{7 e}+\frac {2 (2-e x)^{9/2}}{3 \sqrt {3} e}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.18, size = 58, normalized size = 0.67 \begin {gather*} \frac {2 (-2+e x) \sqrt {4-e^2 x^2} \left (2552+1284 e x+330 e^2 x^2+35 e^3 x^3\right )}{105 e \sqrt {6+3 e x}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(2 + e*x)^(5/2)*Sqrt[12 - 3*e^2*x^2],x]

[Out]

(2*(-2 + e*x)*Sqrt[4 - e^2*x^2]*(2552 + 1284*e*x + 330*e^2*x^2 + 35*e^3*x^3))/(105*e*Sqrt[6 + 3*e*x])

________________________________________________________________________________________

Maple [A]
time = 0.48, size = 52, normalized size = 0.60

method result size
gosper \(\frac {2 \left (e x -2\right ) \left (35 e^{3} x^{3}+330 e^{2} x^{2}+1284 e x +2552\right ) \sqrt {-3 e^{2} x^{2}+12}}{315 e \sqrt {e x +2}}\) \(52\)
default \(\frac {2 \left (e x -2\right ) \left (35 e^{3} x^{3}+330 e^{2} x^{2}+1284 e x +2552\right ) \sqrt {-3 e^{2} x^{2}+12}}{315 e \sqrt {e x +2}}\) \(52\)
risch \(-\frac {2 \sqrt {\frac {-3 e^{2} x^{2}+12}{e x +2}}\, \sqrt {e x +2}\, \left (35 e^{4} x^{4}+260 e^{3} x^{3}+624 e^{2} x^{2}-16 e x -5104\right ) \left (e x -2\right )}{105 \sqrt {-3 e^{2} x^{2}+12}\, e \sqrt {-3 e x +6}}\) \(88\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*x+2)^(5/2)*(-3*e^2*x^2+12)^(1/2),x,method=_RETURNVERBOSE)

[Out]

2/315*(e*x-2)*(35*e^3*x^3+330*e^2*x^2+1284*e*x+2552)*(-3*e^2*x^2+12)^(1/2)/e/(e*x+2)^(1/2)

________________________________________________________________________________________

Maxima [C] Result contains complex when optimal does not.
time = 0.52, size = 71, normalized size = 0.82 \begin {gather*} -\frac {2 \, {\left (-35 i \, \sqrt {3} x^{4} e^{4} - 260 i \, \sqrt {3} x^{3} e^{3} - 624 i \, \sqrt {3} x^{2} e^{2} + 16 i \, \sqrt {3} x e + 5104 i \, \sqrt {3}\right )} {\left (x e + 2\right )} \sqrt {x e - 2}}{315 \, {\left (x e^{2} + 2 \, e\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+2)^(5/2)*(-3*e^2*x^2+12)^(1/2),x, algorithm="maxima")

[Out]

-2/315*(-35*I*sqrt(3)*x^4*e^4 - 260*I*sqrt(3)*x^3*e^3 - 624*I*sqrt(3)*x^2*e^2 + 16*I*sqrt(3)*x*e + 5104*I*sqrt
(3))*(x*e + 2)*sqrt(x*e - 2)/(x*e^2 + 2*e)

________________________________________________________________________________________

Fricas [A]
time = 2.20, size = 60, normalized size = 0.69 \begin {gather*} \frac {2 \, {\left (35 \, x^{4} e^{4} + 260 \, x^{3} e^{3} + 624 \, x^{2} e^{2} - 16 \, x e - 5104\right )} \sqrt {-3 \, x^{2} e^{2} + 12} \sqrt {x e + 2}}{315 \, {\left (x e^{2} + 2 \, e\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+2)^(5/2)*(-3*e^2*x^2+12)^(1/2),x, algorithm="fricas")

[Out]

2/315*(35*x^4*e^4 + 260*x^3*e^3 + 624*x^2*e^2 - 16*x*e - 5104)*sqrt(-3*x^2*e^2 + 12)*sqrt(x*e + 2)/(x*e^2 + 2*
e)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+2)**(5/2)*(-3*e**2*x**2+12)**(1/2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+2)^(5/2)*(-3*e^2*x^2+12)^(1/2),x, algorithm="giac")

[Out]

Exception raised: TypeError >> An error occurred running a Giac command:INPUT:sage2:=int(sage0,sageVARx):;OUTP
UT:Error index.cc index_gcd Error: Bad Argument ValueError index.cc index_gcd Error: Bad Argument Value

________________________________________________________________________________________

Mupad [B]
time = 0.31, size = 54, normalized size = 0.62 \begin {gather*} \frac {2\,\sqrt {12-3\,e^2\,x^2}\,\left (35\,e^4\,x^4+260\,e^3\,x^3+624\,e^2\,x^2-16\,e\,x-5104\right )}{315\,e\,\sqrt {e\,x+2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((12 - 3*e^2*x^2)^(1/2)*(e*x + 2)^(5/2),x)

[Out]

(2*(12 - 3*e^2*x^2)^(1/2)*(624*e^2*x^2 - 16*e*x + 260*e^3*x^3 + 35*e^4*x^4 - 5104))/(315*e*(e*x + 2)^(1/2))

________________________________________________________________________________________